<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>使用javascript表达式</title>
</head>
<body>
  <div id="app">
    <p>{{number +1}}</p>
    <p>{{ok?'true':'false'}}</p>
    <p>{{message.split('').reverse().join('')}}</p>
    <p :id="'list-'+id">xxx</p>
    <p>{{user.name}}</p>
  </div>
  <script src="./code/lib/vue-2.6.12.js"></script>
  <script>
    const vm=new Vue({
      el:'#app',
    data:{
      number:9,
      ok:false,
      message:'ABC',
      id:3,
      user:{
        name:'zs'
      }
    }
  })
  </script>
</body>
</html>